import { createRouter, createWebHistory } from 'vue-router';

const routes = [
    {
        path: '/',
        name: 'index',
        component: import('@/page/index/index.vue'),
    },
    {
        path: '/found',
        name: 'found',
        component: import('@/page/found/found.vue'),
    },
    {
        path: '/mine',
        name: 'mine',
        component: import('@/page/mine/mine.vue'),
    },
    {
        path: '/publish',
        name: 'publish',
        component: import('@/page/publish/publish.vue'),
    },
];

const router = createRouter({
    history: createWebHistory(),
    routes,
});

export default router;